package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysBranch;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 系统机构表 * <!-- end-user-doc -->
 */
public class TsysBranchTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysBranchTable TSYS_BRANCH_TABLE = new TsysBranchTable();

	/**
	 * <!-- begin-user-doc --> 机构编号 * <!-- end-user-doc -->
	 */
	public final Column BRANCH_CODE = new Column(this, "branch_code");
	/**
	 * <!-- begin-user-doc --> 机构级别 * <!-- end-user-doc -->
	 */
	public final Column BRANCH_LEVEL = new Column(this, "branch_level");
	/**
	 * <!-- begin-user-doc --> 机构名称 * <!-- end-user-doc -->
	 */
	public final Column BRANCH_NAME = new Column(this, "branch_name");
	/**
	 * <!-- begin-user-doc --> 机构类别 * <!-- end-user-doc -->
	 */
	public final Column BRANCH_TYPE = new Column(this, "branch_type");
	/**
	 * <!-- begin-user-doc --> 简称 * <!-- end-user-doc -->
	 */
	public final Column SHORT_NAME = new Column(this, "short_name");
	/**
	 * <!-- begin-user-doc --> 上级 * <!-- end-user-doc -->
	 */
	public final Column PARENT_CODE = new Column(this, "parent_code");
	/**
	 * <!-- begin-user-doc --> 机构内码 * <!-- end-user-doc -->
	 */
	public final Column BRANCH_PATH = new Column(this, "branch_path");
	/**
	 * <!-- begin-user-doc --> 备注 * <!-- end-user-doc -->
	 */
	public final Column REMARK = new Column(this, "remark");
	/**
	 * <!-- begin-user-doc --> 扩展字段1 * <!-- end-user-doc -->
	 */
	public final Column EXT_FIELD1 = new Column(this, "ext_field1");
	/**
	 * <!-- begin-user-doc --> 扩展字段2 * <!-- end-user-doc -->
	 */
	public final Column EXT_FIELD2 = new Column(this, "ext_field2");
	/**
	 * <!-- begin-user-doc --> 扩展字段3 * <!-- end-user-doc -->
	 */
	public final Column EXT_FIELD3 = new Column(this, "ext_field3");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysBranchTable() {
		super("tsys_branch");
	}

	public TsysBranchTable(String schemaName) {
		super(schemaName, "tsys_branch");
	}

	public TsysBranchTable(String schemaName, String alias) {
		super(schemaName, "tsys_branch", alias);
	}

	public TsysBranchTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_branch", alias, withAs);
	}

	public Class<TsysBranch> getPojoType() {
		return TsysBranch.class;
	}

	static {
		mappings.put("branchCode", "branch_code");
		mappings.put("branchLevel", "branch_level");
		mappings.put("branchName", "branch_name");
		mappings.put("branchType", "branch_type");
		mappings.put("shortName", "short_name");
		mappings.put("parentCode", "parent_code");
		mappings.put("branchPath", "branch_path");
		mappings.put("remark", "remark");
		mappings.put("extField1", "ext_field1");
		mappings.put("extField2", "ext_field2");
		mappings.put("extField3", "ext_field3");

	}

}
